import request from '@/utils/request'


const api = {}

/**
 * 品牌列表查询
 */
api.query = data => {
	return request({
    	url: `/base/brand/query`,
      method: 'get',
      params:data
  	})
}

api.get = id => {
	return request({
    	url: `/base/brand/get/${id}`,
      	method: 'get'
  	})
}

/**
 * 新增品牌
 */
api.save = data => {
	return request({
    	url: `/base/brand/save`,
      method: 'post',
      data
  	})
}
  
/**
 * 修改品牌
 */
api.update = data => {
	return request({
    	url: `/base/brand/update`,
      method: 'post',
      data
  	})
}

/**
 * 删除品牌
 */
api.delete = id => {
  return request({
      url: `/base/brand/toDelete/${id}`,
      method: 'post'
    })
}
export default api

